package com.qumitech.visualnovel.model.dao.console;

import java.util.Date;
import com.alibaba.fastjson.annotation.JSONField;

public class PropertyChange {
    private Long addedId;

    private String appId;

    private String appChannel;

    private String appName;

    private Long accountId;

    private String propertyId;

    private Integer changeId;

    private Long newProp;

    private Long change;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date changeDate;

    private String currentLogPath;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    public Long getAddedId() {
        return addedId;
    }

    public void setAddedId(Long addedId) {
        this.addedId = addedId;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId == null ? null : appId.trim();
    }

    public String getAppChannel() {
        return appChannel;
    }

    public void setAppChannel(String appChannel) {
        this.appChannel = appChannel == null ? null : appChannel.trim();
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName == null ? null : appName.trim();
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public String getPropertyId() {
        return propertyId;
    }

    public void setPropertyId(String propertyId) {
        this.propertyId = propertyId == null ? null : propertyId.trim();
    }

    public Integer getChangeId() {
        return changeId;
    }

    public void setChangeId(Integer changeId) {
        this.changeId = changeId;
    }

    public Long getNewProp() {
        return newProp;
    }

    public void setNewProp(Long newProp) {
        this.newProp = newProp;
    }

    public Long getChange() {
        return change;
    }

    public void setChange(Long change) {
        this.change = change;
    }

    public Date getChangeDate() {
        return changeDate;
    }

    public void setChangeDate(Date changeDate) {
        this.changeDate = changeDate;
    }

    public String getCurrentLogPath() {
        return currentLogPath;
    }

    public void setCurrentLogPath(String currentLogPath) {
        this.currentLogPath = currentLogPath == null ? null : currentLogPath.trim();
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", addedId=").append(addedId);
        sb.append(", appId=").append(appId);
        sb.append(", appChannel=").append(appChannel);
        sb.append(", appName=").append(appName);
        sb.append(", accountId=").append(accountId);
        sb.append(", propertyId=").append(propertyId);
        sb.append(", changeId=").append(changeId);
        sb.append(", newProp=").append(newProp);
        sb.append(", change=").append(change);
        sb.append(", changeDate=").append(changeDate);
        sb.append(", currentLogPath=").append(currentLogPath);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append("]");
        return sb.toString();
    }
}